package com.runjian.rundo.iot.agent.iec104.codec.handler;

import com.runjian.rundo.iot.agent.iec104.consts.Cot;
import com.runjian.rundo.iot.agent.iec104.parser.frame.ASDUFrame;
import com.runjian.rundo.iot.agent.iec104.parser.frame.IIec104Frame;
import com.runjian.rundo.iot.agent.iec104.parser.frame.InfoElement;

/**
 * M_ME_NC_1(13, "(遥测)短浮点数,带品质描述词"),
 *
 * @author byw
 * @date 2025/05/26
 */
public class IIec104FrameHandlerFor13 implements InfoElementHandler {
	@Override
	public void handle(IIec104Frame aIec104Frame) {
		ASDUFrame asdu = aIec104Frame.getAsdu();
		asdu.setCot(Cot.SPONT);
		for (InfoElement infoElement : asdu.getInfoElements()) {
			infoElement.setQds((short) 0);
		}
	}
}
